let accessListUV = {}
let EnterpriseName = []
let EnterpriseUser = []
if (localStorage.getItem('AccessRankingUV')) {
  let AccessRankingUV = JSON.parse(localStorage.getItem('AccessRankingUV'))
  
  if(AccessRankingUV.data.length){
    for (let i = 0; i < AccessRankingUV.data.length; i++) {
    EnterpriseName.push(AccessRankingUV.data[i].G0ENTERPRISE_NAME)
    EnterpriseUser.push(AccessRankingUV.data[i].K0VIEW_CNT)
  }
}
}

accessListUV = {
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  color: ['#7fa1fc'],
  xAxis: {
    type: 'value',
    boundaryGap: [0, 0.01],
    show: false
  },
  yAxis: {
    axisLabel: {
      interval: 0
    },
    type: 'category',
    data: EnterpriseName,
    axisTick: {
      show: false //不显示坐标轴刻度线
    },
    axisLine: {
      show: false, //不显示坐标轴线
    },
  },
  series: [{
    type: 'bar',
    data: EnterpriseUser
  }, ],
  label: {
    show: true,
    position: 'inside',
    color: 'white'
  },
}


export default accessListUV